package pprof

import (
	"net/http"
	_ "net/http/pprof"
	"simple_game/app/libs/logger"
)

func StartPprof() {
	go func() {
		err := http.ListenAndServe("127.0.0.1:4890", nil)
		if err != nil {
			logger.ERROR("pprof start fail error:", err)
		}
	}()
}
